home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Full / Paragon Drive Backup 9 / DB90_SE_x32.msi / Data1.cab / _9B06B2399983494994DDF72F2C04C89B < prev    next >
Extensible Markup Language  |  2008-10-24  |  6KB  |  164 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet 
  4.   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.   xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  6.   version="1.0">
  7.  
  8. <xsl:output 
  9.   method="html" 
  10.   version="4.0" 
  11.   encoding="UTF-8" 
  12.   omit-xml-declaration="yes" 
  13.   indent="yes"/>
  14.  
  15. <xsl:template name="SrcTgtDescription">
  16.   <xsl:param name="Node"/>
  17.   <xsl:choose>
  18.     <xsl:when test="$Node/disk">QT_TRANSLATE_NOOP("QObject", "Hard Disk") <xsl:value-of select="$Node/disk/param[@name='number']/@valuedescription"/>
  19.     </xsl:when>
  20.   
  21.     <xsl:when test="$Node/partition">
  22.       <xsl:choose>
  23.         <xsl:when test="normalize-space($Node/partition/param[@name='letter']/@valuedescription)">QT_TRANSLATE_NOOP("QObject", "Volume") <xsl:value-of select="$Node/partition/param[@name='letter']/@valuedescription"/> QT_TRANSLATE_NOOP("QObject", "on hard disk") <xsl:value-of select="$Node/partition/param[@name='disk']/@valuedescription"/>
  24.         </xsl:when>
  25.         <xsl:otherwise>QT_TRANSLATE_NOOP("QObject", "Unmounted volume") <xsl:value-of select="$Node/partition/param[@name='number']/@valuedescription"/> QT_TRANSLATE_NOOP("QObject", "on hard disk") <xsl:value-of select="$Node/partition/param[@name='disk']/@valuedescription"/>
  26.               </xsl:otherwise>  
  27.       </xsl:choose>
  28.     </xsl:when>
  29.   
  30.     <xsl:when test="$Node/archive">QT_TRANSLATE_NOOP("QObject", "Archive") "<xsl:value-of select="$Node/archive/param[@name='archivename']/@valuedescription"/>"</xsl:when>
  31.   
  32.   </xsl:choose>
  33. </xsl:template>
  34.  
  35. <xsl:template name="TextDetails">
  36. <xsl:text>****************************************** </xsl:text>
  37. <xsl:value-of select="@description"/><xsl:text> </xsl:text>
  38.  
  39. <xsl:if test="source">
  40.     QT_TRANSLATE_NOOP("QObject", "Source:")
  41.     <xsl:text> </xsl:text><xsl:call-template name="SrcTgtDescription">
  42.         <xsl:with-param name="Node" select="source"/>
  43.     </xsl:call-template>
  44.     <xsl:text> </xsl:text>
  45. </xsl:if>
  46.  
  47. <xsl:if test="target">
  48.     QT_TRANSLATE_NOOP("QObject", "Target:")
  49.     <xsl:text> </xsl:text><xsl:call-template name="SrcTgtDescription">
  50.         <xsl:with-param name="Node" select="target"/>
  51.     </xsl:call-template>
  52.     <xsl:text> </xsl:text>
  53. </xsl:if>
  54.  
  55. <xsl:if test="params">
  56.     QT_TRANSLATE_NOOP("QObject", "Parameters:")
  57.     <xsl:for-each select="params/param">
  58.     <xsl:text> </xsl:text><xsl:value-of select="@description"/>: <xsl:value-of select="@valuedescription"/><xsl:text> </xsl:text><xsl:text> </xsl:text>
  59.     </xsl:for-each>
  60. </xsl:if>
  61.  
  62. <xsl:if test="error">
  63.     <xsl:text> </xsl:text>QT_TRANSLATE_NOOP("QObject", "The operation has failed:")
  64.     <xsl:text> </xsl:text><xsl:value-of select="error/@description"/> (<xsl:value-of select="error/@code"/>)
  65. </xsl:if>
  66. <xsl:text> </xsl:text>
  67.  
  68. </xsl:template>
  69.  
  70. <xsl:template name="HTMLDetails">
  71.  
  72.   <li>
  73.     <h4><xsl:value-of select="@description"/></h4>
  74.       
  75.       <xsl:if test="source">
  76.           <b>QT_TRANSLATE_NOOP("QObject", "Source:")</b><br/>
  77.           <xsl:call-template name="SrcTgtDescription">
  78.             <xsl:with-param name="Node" select="source"/>
  79.           </xsl:call-template>
  80.       <br/>
  81.       </xsl:if>
  82.  
  83.       <xsl:if test="target">
  84.           <b>QT_TRANSLATE_NOOP("QObject", "Target:")</b><br/>
  85.           <xsl:call-template name="SrcTgtDescription">
  86.             <xsl:with-param name="Node" select="target"/>
  87.           </xsl:call-template>
  88.             <br/>
  89.       </xsl:if>
  90.  
  91.         <xsl:if test="params">
  92.         <b>QT_TRANSLATE_NOOP("QObject", "Parameters:")</b><br/>
  93.         <xsl:for-each select="params/param">
  94.           <xsl:value-of select="@description"/>: <xsl:value-of select="@valuedescription"/><br/>
  95.         </xsl:for-each>
  96.         </xsl:if>
  97.   </li>
  98.   
  99.   <br/>
  100.   <xsl:if test="error">
  101.     <b>QT_TRANSLATE_NOOP("QObject", "The operation has failed:")</b>
  102.     <xsl:value-of select="error/@description"/> (<xsl:value-of select="error/@code"/>)
  103.  
  104.   </xsl:if>
  105.  
  106. </xsl:template>
  107.  
  108. <xsl:template match="/report">
  109.  
  110. <html>
  111.  
  112.   <h2>QT_TRANSLATE_NOOP("QObject", "Full E-mail notification report.")</h2>
  113.     
  114.   <p>
  115.     <h3>QT_TRANSLATE_NOOP("QObject", "System info:")</h3>
  116.       QT_TRANSLATE_NOOP("QObject", "Computer Name: ")<xsl:value-of select="computer"/><br/>
  117.     <xsl:value-of select="OS"/>
  118.   </p>
  119.  
  120.   <p>
  121.   <h3>QT_TRANSLATE_NOOP("QObject", "Summary:")</h3>
  122.     QT_TRANSLATE_NOOP("QObject", "Generated: ")<xsl:value-of select="generated"/><br/><br/>
  123.   <xsl:choose>
  124.     <xsl:when test="error">
  125.       QT_TRANSLATE_NOOP("QObject", "Not the all operations have been applied.")
  126.       <br/>QT_TRANSLATE_NOOP("QObject", "The following error had occured: ")
  127.       <xsl:value-of select="error/@description"/> (<xsl:value-of select="error/@code"/>)
  128.     </xsl:when>
  129.     <xsl:otherwise>
  130.       QT_TRANSLATE_NOOP("QObject", "All operations have been applied successfully.")
  131.     </xsl:otherwise>
  132.   </xsl:choose>
  133.   </p>  
  134.   
  135.   <p>
  136.     <h3>QT_TRANSLATE_NOOP("QObject", "The following operations have been performed:")</h3>
  137.     <ol>
  138.     <xsl:for-each select="action[@type='physical']">
  139.         <xsl:call-template name="HTMLDetails"/>
  140.     </xsl:for-each>
  141.     </ol>
  142.   </p>
  143.  
  144.   <xsl:if test="string(snapshot) = 'True'">
  145.     <p>
  146.       <h3>QT_TRANSLATE_NOOP("QObject", "The system snapshot:")</h3>
  147.       QT_TRANSLATE_NOOP("QObject", "Your hard disks before the changes:")<br/>
  148.       <img src="cid:snapshot_before.png"/><br/>
  149.       QT_TRANSLATE_NOOP("QObject", "Your hard disks after the changes:")<br/>
  150.       <img src="cid:snapshot_after.png"/><br/>
  151.     </p>
  152.   </xsl:if>
  153.   
  154.   <hr/><br/>
  155.   <font color="gray" size="-1">
  156.       QT_TRANSLATE_NOOP("QObject", "You have requested full e-mail reports from Drive BackupΓäó")<br/>
  157.     QT_TRANSLATE_NOOP("QObject", "Please change e-mail options to get short reports or to stop getting the reports.")
  158.   </font>
  159.  
  160. </html>  
  161. </xsl:template>
  162.  
  163. </xsl:stylesheet>
  164.